x86/HVM: drop __hvm_clear()
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:55:14 +0000 (13:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:55:14 +0000 (13:55 +0100)
commit3eabc1c2e240bcb9637153714ed20db30613ed85
treeace8decb2bf4e2dde9aa683185e71dce43f1e5f2
parent56673a8eb7c90d8fbe2a69a3b52a6f5fc8194d6a
x86/HVM: drop __hvm_clear()

Rather than almost entirely duplicating __hvm_copy(), have __hvm_copy()
clear guest memory if the source pointer is NULL.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c